export default class gameover extends Laya.Script {
    // 更多参数说明请访问: https://ldc2.layabox.com/doc/?nav=zh-as-2-4-0
    btn_start=null;
    constructor() { super(); }
    onAwake(){
        Laya.stage.on("gamerover",this,function(){this.owner.visible=true;})
        this.btn_start=this.owner.getChildByName("btn_start");
        this.btn_start.on(Laya.Event.CLICK,this,function(){Laya.stage.event("start");this.owner.visible=false});
    }
}